from google.appengine.ext import db
from google.appengine.ext.db import polymodel

# Class Account: Name, email, key
# PolyModel is a superclass
# Short - ac
class Account(polymodel.PolyModel):
	# All models have a key assigned when they are put()
	# You can retrieve this key using Model.key()
	# "We're going to have to have exams every class" -ALK 2/6/12
	email = db.EmailProperty()
	name = db.StringProperty()

# Subclass Admin: password, calendar key
# Short - ad
class Admin(Account):
	password = db.StringProperty()
	calKey = db.ReferenceProperty()

# Subclass User 
# Short - usr
class User(Account):
	pass